/*
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-06-30 10:09:43
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-07-01 20:24:48
 * @FilePath: /XMate-h5/src/services/minutes/share.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { http } from "@/utils/http";

/// 分享会议纪要
export const shareConferenceMinutes = (confId: string, parameter = {
    sharedUserIds: [],
    viewOnlyHost: false,
    shareType: 0,
    sharePassword: ''
}) => {
    console.log('zqx ====  shareConferenceMinutes', confId, parameter)
    return http.request({
        url: `/rest/api/conference/${confId}/share`,
        method: 'POST',
        data: parameter,
        useOriginRes: true
    })
}

/// 获取分享设置
export const getShareSettings = (confId: string) => {
    return http.request({
        url: `/rest/api/conference/${confId}/share`,
        method: 'GET'
    })
}

// 删除沟通记录
export const deleteVisitRecordAPI = (confId: string) => {
    return http.request({
        url: `/rest/api/customer/meetings/${confId}`,
        method: 'DELETE',
    })
};

export const getConferenceIdByShareId = (shareId: string) => {
    return http.request({
        url: `/rest/conference/conferenceId/${shareId}`,
        method: 'GET'
    })
}